package org.pan.domain.db;


import java.util.Comparator;
import java.util.List;

/**
 * 基本的树状结构
 *
 * Created by panmingzhi on 2015/12/25.
 */
public interface ITreeNode<T>  extends Comparator<T> {

    void setParent(T t);

    T getParent();

    void setChildren(List<T> children);

    List<T> getChildren();

}
